#include "SkyEffect.h"

namespace D3D10Effects
{
    SkyEffect::SkyEffect(ID3D10Device * const device, const std::wstring& filename)
        : Effect(device, filename)
        , mTechnique(nullptr)
        , mWVP(nullptr)
        , mCubeMap(nullptr)
    {
    	mTechnique = mEffect->GetTechniqueByName("SkyTech");
	    mWVP = mEffect->GetVariableByName("gWVP")->AsMatrix();
        mCubeMap = mEffect->GetVariableByName("gCubeMap")->AsShaderResource();
    }

    SkyEffect::~SkyEffect() 
    {
    
    }
}